# -- coding: utf-8 --
# @Time : 2024/1/11 23:37
# @Author : rlh
# @File : config.py
# 功能描述:  存放配置相

# 系统第三方库

# 导入项目模块
class BaseConfig:
    SECRET_KEY = 'testtetst'
    SQLALCHEMY_TRACK_MODIFICATIONS = False
    TEMPLATES_AUTO_RELOAD = True

class DevelopmentConfig(BaseConfig):
    # SQLALCHEMY_DATABASE_URI = "sqlite:///database/database.db"
    SQLALCHEMY_DATABASE_URI = r"sqlite:///database\database.db"
    IP = '0.0.0.0'
    # IP = '::'
    PORT = 8596
    DEBUG = True

class TestingConfig(BaseConfig):
    SQLALCHEMY_DATABASE_URI = "sqlite:///database/database.db"
    IP = '0.0.0.0'
    PORT = 8596
    DEBUG = True

class ProductionConfig(BaseConfig):
    SQLALCHEMY_DATABASE_URI = "sqlite:///database/database.db"
    IP = '10.191.212.9'
    PORT = 8596
    DEBUG = True


env = DevelopmentConfig()